<?php
defined('SYSPATH') or die('No direct script access.');

/**
 * 全局事件配置文件
 */
return array
(
    /*'test_event' =>function ($user_id) {
        Log::add('New user created, ID is: '.$user_id);
    },*/
    //创建订单
    'order_created' => array(
        'Listener_Order_Created_Sms' => array('Listener_Order_Created_Sms', 'handle'),
        'Listener_Order_Created_Email' => array('Listener_Order_Created_Email', 'handle'),
        'Listener_Order_Created_Qywx' => array('Listener_Order_Created_Qywx', 'handle'),
        'Listener_Order_Created_Jifen' => array('Listener_Order_Created_Jifen', 'handle'),
        'Listener_Order_Created_Log' => array('Listener_Order_Created_Log', 'handle'),
        'Listener_Order_Created_Msg' => array('Listener_Order_Created_Msg', 'handle'),
        'Listener_Order_StatusChanged_OrderListener' => array('Listener_Order_StatusChanged_OrderListener', 'handle'),
        'Listener_Order_Created_RefundRule' => array('Listener_Order_Created_RefundRule', 'handle'),
    ),
    //订单确认
    'order_confirmed' => array(
        'Listener_Order_Confirmed_Sms' => array('Listener_Order_Confirmed_Sms', 'handle'),
        'Listener_Order_Confirmed_Email' => array('Listener_Order_Confirmed_Email', 'handle'),
        'Listener_Order_Confirmed_Qywx' => array('Listener_Order_Confirmed_Qywx', 'handle'),
    ),
    //订单支付完成
    'order_payed' => array(
        'Listener_Order_Payed_Sms' => array('Listener_Order_Payed_Sms', 'handle'),
        'Listener_Order_Payed_Email' => array('Listener_Order_Payed_Email', 'handle'),
        'Listener_Order_Payed_Qywx' => array('Listener_Order_Payed_Qywx', 'handle'),
        'Listener_Order_Payed_Confirmed_Again' => array('Listener_Order_Confirmed_Again', 'handle'),
        'Listener_Order_Payed_Order' => array('Listener_Order_Payed_Order', 'handle')
    ),
    // 订单取消
    'order_canceled' => array(
        'Listener_Order_Canceled_Sms' => array('Listener_Order_Canceled_Sms', 'handle'),
        'Listener_Order_Canceled_Email' => array('Listener_Order_Canceled_Email', 'handle'),
        'Listener_Order_Canceled_Qywx' => array('Listener_Order_Canceled_Qywx', 'handle'),
        'Listener_Order_Canceled_Jifen' => array('Listener_Order_Canceled_Jifen', 'handle'),
        'Listener_Order_Canceled_Order' => array('Listener_Order_Canceled_Order', 'handle')
    ),
    // 订单退款申请待审核
    'order_reviewing' => array(
        'Listener_Order_Reviewing_Sms' => array('Listener_Order_Reviewing_Sms', 'handle'),
        'Listener_Order_Reviewing_Email' => array('Listener_Order_Reviewing_Email', 'handle'),
        'Listener_Order_Reviewing_Qywx' => array('Listener_Order_Reviewing_Qywx', 'handle')
    ),
    // 订单退款完成
    'order_refunded' => array(
        'Listener_Order_Refunded_Sms' => array('Listener_Order_Refunded_Sms', 'handle'),
        'Listener_Order_Refunded_Email' => array('Listener_Order_Refunded_Email', 'handle'),
        'Listener_Order_Refunded_Qywx' => array('Listener_Order_Refunded_Qywx', 'handle'),
        'Listener_Order_Refunded_Jifen' => array('Listener_Order_Refunded_Jifen', 'handle'),
        'Listener_Order_Refunded_Order' => array('Listener_Order_Refunded_Order', 'handle')
    ),
    // 订单完成
    'order_finished' => array(
        'Listener_Order_Finished_Sms' => array('Listener_Order_Finished_Sms', 'handle'),
        'Listener_Order_Finished_Email' => array('Listener_Order_Finished_Email', 'handle'),
        'Listener_Order_Finished_Qywx' => array('Listener_Order_Finished_Qywx', 'handle'),
        'Listener_Order_Finished_Jifen' => array('Listener_Order_Finished_Jifen', 'handle'),
        'Listener_Order_Finished_Order' => array('Listener_Order_Finished_Order', 'handle')
    ),
    // 订单已发货
    'order_expressed' => array(
        'Listener_Order_Expressed_Sms' => array('Listener_Order_Expressed_Sms', 'handle'),
        'Listener_Order_Expressed_Email' => array('Listener_Order_Expressed_Email', 'handle'),
        'Listener_Order_Expressed_Qywx' => array('Listener_Order_Expressed_Qywx', 'handle'),
    ),
    // 订单状态变更
    'order_status_changed' => array(
        'Listener_Order_StatusChanged_OrderListener' => array('Listener_Order_StatusChanged_OrderListener', 'handle'),
        'Listener_Order_StatusChanged_Statistic' => array('Listener_Order_StatusChanged_Statistic', 'handle'),
    ),
    //订单评价
    'order_comment' => array(
        'Listener_Order_Comment_Jifen' => array('Listener_Order_Comment_Jifen', 'handle'),

    ),
);
